package com.admin.system.modules.mnt.mapper;

import com.admin.system.modules.mnt.dto.DeployQueryDTO;
import com.admin.system.modules.mnt.entity.Deploy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author sq-lan
 **/
@Mapper
public interface DeployMapper extends BaseMapper<Deploy> {

    List<Deploy> list(@Param("criteria") DeployQueryDTO dto);

    Set<Integer> getIdByAppIds(@Param("appIds") Set<Integer> appIds);

    Deploy getDeployById(@Param("deployId") Integer deployId);
}
